import axios from 'axios'

const headers = {
  'Content-Type': 'application/json'
}

// 币种交易汇总
export const coinSummary = data => axios({
  url: `/po_contract/admin/ctOrders/coin/summary`,
  method: 'post',
  data: JSON.stringify(data),
  headers
})

// 币种每日交易汇总
export const daySummary = data => axios({
  url: `/po_contract/admin/ctOrders/day/summary`,
  method: 'post',
  data: JSON.stringify(data),
  headers
})

// 合约结算明细
export const userSummary = data => axios({
  url: `/po_contract/admin/ctOrders/user/summary`,
  method: 'post',
  data: JSON.stringify(data),
  headers
})
